html,
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #0c2340;
    font-family: "Sarpanch", Arial, Verdana;
}
.btn {
    outline: none !important;
}
div {
    box-sizing: border-box;
}
.mobile-container {
    width: 100%;
    max-width: 450px;
    height: 100dvh;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}
#start-load {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    background: rgb(12, 35, 64);
    background: linear-gradient(180deg, rgba(12, 35, 64, 1) 0%, rgba(28, 56, 94, 1) 50%, rgba(12, 35, 64, 1) 100%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0px;
}
#start-load > img {
    width: 80%;
    margin: 0 auto;
}
#start-load .loading {
    position: fixed;
    z-index: 1000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.078125rem;
}
#start-load .loading img {
    width: 50px;
}
#start-load .loading p {
    margin-top: 10px;
}
#start-load .loading p.tnc {
    margin-top: 20px;
    text-transform: none;
    margin-bottom: 0;
}
#start-load .loading p.tnc a {
    color: #ffffff;
}
#titans-logo {
    display: block;
    margin: 0 auto;
    max-width: 100px;
    width: 100%;
    height: auto;
}
#start-load .rolling-ruby {
    width: 100px;
    margin-top: 30px;
    animation: roll 4s linear infinite;
    transform-origin: center;
    position: relative;
}
#start-load #start-btn {
    margin-top: 30px;
}
#start-load #register {
    width: 100%;
    margin-top: 50px;
}
#start-load #register .register-content {
    width: 80%;
    margin: 0 auto;
}
.img-fluid {
    max-width: 100%;
    display: block;
}
.mobile-container #playable {
    position: relative;
    width: 100%;
    margin: 0;
    height: 100dvh;
}
.mobile-container #playable * {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.mobile-container #playable #background {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    height: 100dvh;
    margin-left: 50%;
    transform: translateX(-50%);
}
.mobile-container #playable #profile {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 102;
}
.mobile-container #playable #profile .hat {
    position: absolute;
    top: -2px;
    left: 3px;
    width: 90px;
    z-index: 101;
}
.mobile-container #playable #profile .hat.under {
    z-index: 99;
}
.mobile-container #playable #profile .rod {
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 150px;
    z-index: 101;
}
.mobile-container #playable #profile .pic {
    width: 100px;
    height: 100px;
    border-radius: 100px;
    border: 5px solid #0c2340;
    overflow: hidden;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5) inset;
    outline: 1px solid #ffffff;
    background-color: rgba(1, 147, 198, 1);
}
.mobile-container #playable #profile .pic img {
    position: relative;
    width: 90px;
    height: 90px;
    z-index: 100;
}
.mobile-container #playable #profile span {
    position: absolute;
    z-index: 102;
    display: inline-block;
    bottom: -5px;
    left: 50%;
    background-color: #feca2a;
    color: #000000;
    padding: 0.125rem 0.375rem;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.078125rem;
    line-height: 1.8;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: 3px;
    transform: translateX(-50%);
    min-width: 80px;
    text-align: center;
    box-shadow: 0 -1px 0px 0px rgba(255, 255, 255, 1) inset;
    border: 1px solid #9d820b;
    text-shadow: 1px 1px rgba(255, 255, 255, 0.5);
}
.mobile-container #playable .scene {
    width: 100%;
    z-index: 100;
    position: absolute;
    top: 0;
    left: 0;
    height: 100dvh;
}
.mobile-container #playable .scene video {
    width: auto;
    height: 100dvh;
    margin-left: 50%;
    transform: translateX(-50%);
}
.mobile-container #playable #topnav {
    position: absolute;
    top: 15px;
    left: 65px;
    z-index: 101;
    width: calc(100% - 80px);
}
.mobile-container #playable #topnav .experience {
    background-color: rgba(0, 0, 0, 0.1);
    color: #000000;
    padding: 0.2rem 0.375rem;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.078125rem;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: 3px;
    min-width: 50px;
    box-shadow: 0 -1px 0px 0px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px rgba(255, 255, 255, 0.5);
    display: flex;
}
.mobile-container #playable #topnav .level {
    background-color: rgba(108, 29, 69, 1);
    color: #ffffff;
    padding: 0.2rem 0.5rem 0.2rem 1.7rem;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.078125rem;
    line-height: 2;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: 3px;
    min-width: 50px;
    text-align: center;
    box-shadow: 0 -1px 0px 0px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    display: inline-block;
    margin: 0 0 0 15px;
}
.mobile-container #playable #topnav .xp {
    background-color: rgba(248, 204, 13, 1);
    height: 20px;
    align-self: center;
    color: #000000;
    padding: 0 0.375rem;
    font-size: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.078125rem;
    line-height: 20px;
    text-transform: uppercase;
    white-space: nowrap;
    width: 160px;
    text-shadow: 1px 1px rgba(255, 255, 255, 0.5);
    display: inline-block;
    text-align: right;
}
.mobile-container #playable #topnav .spacer {
    background-color: rgba(248, 204, 13, 0.3);
    flex-grow: 1;
    height: 20px;
    align-self: center;
}
.mobile-container #playable #inventory {
    position: absolute;
    top: 65px;
    right: 15px;
    z-index: 101;
}
.mobile-container #playable #inventory .item {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 -1px 0px 0px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 50px;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    position: relative;
}
.mobile-container #playable #inventory .item img {
    width: 50px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.mobile-container #playable .dashboard {
    position: absolute;
    z-index: 998;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgb(12, 35, 64);
    background: linear-gradient(0deg, rgba(12, 35, 64, 1) 71%, rgba(28, 56, 94, 1) 100%);
}
.mobile-container #playable .dashboard .power,
.mobile-container #playable .dashboard .help {
    position: absolute;
    z-index: 999;
    bottom: 10px;
    right: 15px;
    height: 60px;
    padding-top: 10px;
    line-height: 20px;
    color: #feca2a;
    text-transform: uppercase;
    font-weight: bold;
    background: linear-gradient(0deg, rgba(28, 56, 94, 1) 50%, rgba(12, 35, 64, 1) 100%);
    text-align: center;
    width: 80px;
    letter-spacing: 0.115rem;
    font-size: 0.8rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 -2px 3px 1px rgba(0, 0, 0, 0.5) inset;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: none;
}
.mobile-container #playable .dashboard .help {
    right: auto;
    left: 15px;
}
.mobile-container #playable .dashboard .power i,
.mobile-container #playable .dashboard .help i {
    font-size: 1rem;
}
.mobile-container #playable .interact {
    position: absolute;
    z-index: 999;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
}
.mobile-container #playable .interact .dial {
    background: rgb(12, 35, 64);
    background: linear-gradient(180deg, rgba(12, 35, 64, 1) 0%, rgba(28, 56, 94, 1) 100%);
    color: #feca2a;
    width: 90px;
    height: 90px;
    text-align: center;
    line-height: 90px;
    border-radius: 50%;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.7), inset 0px 2px 3px rgba(255, 255, 255, 0.5);
    border: solid 1px transparent;
    transition: all 0.2s linear;
}
.mobile-container #playable .interact .dial img {
    width: 50px;
}
.mobile-container #playable .interact .dial:hover {
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0), inset 0px 0 6px rgba(0, 0, 0, 1);
    line-height: 85px;
}
.mobile-container #playable .interact .dial:before {
    content: "";
    display: block;
    border-top: 1px solid rgba(0, 0, 0, 0.5);
    position: absolute;
    top: -5px;
    left: -5px;
    bottom: -5px;
    right: -5px;
    z-index: 998;
    border-radius: 50%;
    box-shadow: inset 0px 3px 10px #ddd;
}
.footer {
    color: #ffffff;
    text-align: center;
    font-size: 0.8rem;
    text-shadow: 1px 1px rgba(255, 255, 255, 0.5);
}
#fieldoverlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #0c2340;
    z-index: 990;
    opacity: 0.9;
}
.lightbox {
    background-color: #0c2340;
    color: #ffffff;
    font-size: 0.9rem;
    width: 90vw;
    max-width: 450px;
    position: fixed;
    z-index: 997;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0px 5px 6px 2px rgba(0, 0, 0, 0.1);
    height: auto;
    border-radius: 0.25rem;
    border-bottom: 5px solid #0a1c31;
}
.lightbox h2 {
    margin: 0 auto;
    text-align: center;
}
.lightbox .close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 998;
    background-color: #0a1c31;
    color: #ffffff;
    font-weight: bold;
    width: 30px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    border-bottom-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}
.lightbox .lb-content {
    padding-top: 30px;
    padding-bottom: 30px;
    text-align: center;
    color: #ffffff;
}
.lightbox .lb-content .num-list p {
    line-height: 24px;
}
.lightbox .lb-content .num-list p span {
    display: inline-block;
    background-color: #feca2a;
    border-radius: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 0.8rem;
    margin-right: 5px;
    text-align: center;
    color: #000000;
}
#complete .prize_title > p {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0;
}
#complete .prize_img > img {
    max-height: 280px;
    margin: 0 auto;
}
#complete .load_img > img {
    width: 50px;
    margin: 100px 0;
}
#complete .btn {
    letter-spacing: 0.1rem !important;
}
input[type="checkbox"] {
    display: none;
}
input[type="checkbox"] + label {
    text-transform: none;
    text-align: left;
    line-height: 15px;
}
input[type="checkbox"] + label:before {
    content: "";
    display: block;
    float: left;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-weight: bold;
    font-size: 1px;
    background-color: #ffffff;
    margin: 0 10px 0 0;
    border-radius: 3px;
    transition: all 0.3s linear;
}
input[type="checkbox"]:checked + label:before {
    content: "\2713";
    color: #3d0d21;
    font-size: 20px;
    transition: all 0.3s linear;
}
input[type="text"],
textarea,
select {
    width: 100%;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 3px;
    line-height: 2rem;
    min-height: 2rem;
    margin-top: 5px !important;
    padding: 5px 0px;
    font-size: 1rem;
    text-align: center;
}
select {
    -webkit-appearance: none;
}
textarea,
select[multiple] {
    border-top: 1px solid #d8d8d8;
    border-left: 1px solid #d8d8d8;
    border-right: 1px solid #d8d8d8;
}
input[type="submit"],
.btn-primary,
input[type="submit"]:hover,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    margin: 0 auto;
    border: 0.125rem solid transparent !important;
    border-radius: 0.25rem;
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.21875rem;
    line-height: 0.9285714286;
    max-width: 25rem;
    padding: 1rem;
    position: relative;
    text-align: center;
    text-transform: uppercase;
    transition: all 0.25s ease-out;
    background-color: #feca2a !important;
    color: #000000;
    padding-left: 20px;
    padding-right: 20px;
}
.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: transparent !important;
    padding-left: 10px;
    padding-right: 10px;
    border-color: #feca2a !important;
    color: #feca2a !important;
}
.instructions {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}
.instructions span {
    color: #ffffff;
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.078125rem;
    line-height: 1.8;
    text-transform: uppercase;
    text-shadow: 1px 1px rgba(0, 0, 0, 1);
    text-align: center;
}
#skill-bar {
    position: absolute;
    z-index: 102;
    width: 50px;
    bottom: 60px;
    right: 30px;
    height: 50%;
    background: rgb(255, 0, 0);
    background: linear-gradient(
                0deg,
                rgba(255, 0, 0, 0.3) 0%,
                rgba(254, 104, 0, 0.5) 59%,
                rgba(249, 255, 0, 0.7) 88%,
                rgba(0, 149, 0, 0.8) 100%
            )
            padding-box,
        linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(0, 0, 0, 0) 50%) border-box;
    border: 10px solid transparent;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3) inset;
}
#skill-bar .max {
    text-align: center;
    color: rgba(1, 1, 1, 0.8);
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    margin-top: 3px;
}
#skill-bar .target {
    position: absolute;
    margin-top: -10px;
    margin-left: 20px;
    top: 100%;
    animation: skillbar 2s linear infinite;
}
#skill-bar .target .target-icon {
    width: 0px;
    height: 0px;
    border-style: solid;
    border-width: 0 10px 20px 10px;
    border-color: transparent transparent #feca2a transparent;
    transform: rotate(-90deg);
}
#skill-bar .target .target-icon img {
    width: 28px;
    height: 25px;
    display: inline;
}
#skill-bar .target .target-icon.bad {
    outline-color: rgba(255, 0, 0, 0.7) !important;
    animation: pulse 2s ease infinite;
}
#skill-bar .target .target-icon.ok {
    outline-color: rgba(255, 192, 0, 0.7) !important;
    animation: pulse 2s ease infinite;
}
#skill-bar .target .target-icon.perfect {
    outline-color: rgba(0, 255, 0, 0.7) !important;
    animation: pulse 2s ease infinite;
}
#screen-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
}
#screen-blur.bad {
    box-shadow: 2px 1px 20px 2px rgba(255, 0, 0, 0.4) inset;
}
#screen-blur.ok {
    box-shadow: 2px 1px 20px 2px rgba(255, 192, 0, 0.4) inset;
}
#screen-blur.perfect {
    box-shadow: 2px 1px 20px 2px rgba(0, 255, 0, 0.4) inset;
}
.swipedown {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform: translateX(-50%);
    width: 100px;
    opacity: 0.3;
    animation: swipedown 3s ease infinite;
}
@keyframes swipedown {
    100% {
        bottom: 10%;
    }
}
.swipeup {
    animation: swipeup 2s linear infinite;
}
@keyframes swipeup {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
}
.swing {
    animation: swing 2s linear infinite;
}
@keyframes swing {
    0%,
    100% {
        transform: rotate(-10deg);
    }
    20% {
        transform: scale(0.95);
    }
    50% {
        transform: rotate(10deg);
    }
    80% {
        transform: scale(0.95);
    }
}
@keyframes skillbar {
    0% {
        top: 100%;
    }
    50% {
        top: 0;
    }
    100% {
        top: 100%;
    }
}
@keyframes pulse {
    0% {
        outline: 0 solid rgba(255, 0, 0, 0.7);
    }
    50% {
        outline: 5px solid rgba(255, 0, 0, 0.7);
    }
    100% {
        outline: 0 solid rgba(255, 0, 0, 0.7);
    }
}
@keyframes flash {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
.logo-container {
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.logo-container p {
    margin: 0;
    padding: 0;
}

.logo-container h1 {
    color: #ffffff;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: "Sarpanch", sans-serif;
    font-weight: 600;
    font-style: normal;
    margin: 5px;
}

.logo-container img {
    width: 100%;
    height: auto;
    margin-top: 0;
}

.pro-26-logo {
    width: 80%;
    height: auto;
    max-width: 500px;
    border-radius: 0 0 10px 10px;
}

@media screen and (max-width: 375px) {
    .pro-26-logo {
        max-width: 320px;
    }
}

@keyframes roll {
    0% {
        transform: translateX(-25vw) rotate(0deg);
    }
    25% {
        transform: translateX(25vw) rotate(270deg);
    }
    50% {
        transform: translateX(-25vw) rotate(0deg);
    }
    75% {
        transform: translateX(25vw) rotate(270deg);
    }
    100% {
        transform: translateX(-25vw) rotate(0deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in forwards;
}

.row.pb-4 {
    padding-bottom: 0.5rem !important;
}

#register .row:has(input[type="checkbox"]) {
    padding-top: 0.5rem;
    padding-bottom: rem;
}

/* Game Overlay Styles */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    pointer-events: auto;
}

@media screen and (max-height: 800px) {
    .logo-container {
        min-height: 95px;
    }

    #titans-logo {
        max-width: 70px !important;
    }

    .logo-container h1 {
        font-size: 0.8rem;
        margin: 3px;
    }

    /* Adjust game controls position */
    .game-controls {
        bottom: 100px;
    }

    .power-control {
        bottom: 110px;
        height: 140px;
    }

    /* Smaller player info */
    .player-avatar {
        width: 80px;
        height: 80px;
    }

    .player-name {
        width: 80px;
        height: 40px;
        padding: 0px 10px;
    }

    .player-name h5 {
        font-size: 1rem;
    }

    .player-name h6 {
        font-size: 0.8rem;
        padding-top: 3px;
    }

    .player-score {
        width: 80px;
        height: 65px;
        padding: 5px 10px;
    }

    .score-value {
        font-size: 2rem;
    }

    .high-score {
        width: 80px;
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    /* Smaller game controls */
    .wind-meter {
        width: 95px;
        height: 95px;
    }

    .wind-value {
        font-size: 1.5rem;
    }

    .wind-unit,
    .wind-label {
        font-size: 0.6rem;
    }

    .power-meter {
        width: 110px;
        height: 60px;
    }

    .btn-angle {
        width: 70px;
        height: 70px;
        font-size: 0.9rem;
    }

    /* Adjust game stats */
    .balls-remaining {
        padding: 8px 12px;
        font-size: 1rem;
    }

    /* Adjust result text */
    .result-text {
        font-size: 2rem;
    }

    /* Adjust game instruction */
    .game-instruction {
        font-size: 0.9rem;
        padding: 12px 15px;
        width: 180px;
        bottom: 200px;
    }

    /* Adjust game hints */
    .game-hint {
        font-size: 0.8rem;
        padding: 8px 12px;
        width: 130px;
    }
}

.player-info {
    position: absolute;
    top: 40px;
    left: 0px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #fff;
}

.player-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #feca2a;
    overflow: hidden;
    background: #e2ab00;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-name {
    background: #feca2a;
    color: #000;
    padding: 0px 15px;
    border-radius: 2px;
    font-weight: 600;
    font-size: 1.2rem;
    width: 100px;
    height: 50px;
}

.player-name h5 {
    margin: 0;
    padding: 0;
    text-align: center;
}

.player-name h6 {
    margin: 0;
    padding-top: 6px;
    text-align: center;
    font-size: 0.9rem;
}

.player-score {
    background: #0193c6;
    padding: 10px 20px;
    border-radius: 2px;
    text-align: center;
    width: 100px;
    height: 80px;
}

.player-score h6 {
    margin: 0;
    padding-top: 0px;
    text-align: center;
    font-size: 0.9rem;
}

.score-label {
    font-size: 0.9rem;
    color: #fff;
    text-transform: uppercase;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    transition: transform 0.5s ease-out;
}

.score-value.updating {
    transform: scale(1.2);
}

.high-score {
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
    width: 100px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 2px;
}

.game-stats {
    position: absolute;
    top: 55px;
    right: 10px;
    color: #fff;
}

.balls-remaining {
    background: rgba(0, 0, 0, 0.6);
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    font-size: 1.1rem;
}

.balls-remaining h4 {
    font-size: 0.8rem;
    margin: 0;
    padding-bottom: 2px;
    line-height: 1.2;
    font-weight: 100;
}

.balls-remaining .count {
    color: #fff;
    font-weight: 600;
    margin: 0;
}

.game-controls {
    position: absolute;
    bottom: 160px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-right: 10px;
    pointer-events: auto;
}

.wind-meter {
    width: 115px;
    height: 115px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wind-meter .wind-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: contain;
    pointer-events: none;
}

.wind-meter .wind-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-align: center;
}

.wind-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #000;
    line-height: 1;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}

.wind-unit,
.wind-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #000;
    line-height: 1;
}

.power-meter {
    width: 130px;
    height: 70px;
    background: rgba(0, 163, 224, 0.2);
    border-radius: 100px 100px 0 0;
    border: 2px solid #fff;
    position: relative;
    overflow: hidden;
    margin-left: -20px;
}

.power-meter::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
}

/* Perfect range indicator */
.power-meter .perfect-range {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 30px; /* Default width for front kicks */
    height: 75px;
    background: rgba(103, 235, 255, 0.3);
    transform: translateX(-50%) rotate(0deg);
    transform-origin: bottom center;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    /* transition: transform 0.1s ease-out; */ /* Removed to update instantly with wind */
}

/* Perfect range for side kicks: 20° span (-40 to -20 right, 10 to 30 left).
   At height 75px, 20° needs width 2*75*tan(10°) ≈ 26px so hint matches logic. */
.power-meter .perfect-range.side-kick {
    width: 27px;
}

.meter-gauge {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 3px;
    height: 90%;
    background: #fff;
    transform-origin: bottom center;
    z-index: 100;
}

.power-control {
    position: absolute;
    bottom: 110px;
    right: 30px;
    height: 160px;
    width: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.power-control::before {
    content: "MAX";
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    letter-spacing: 0.08rem;
    font-family: "Sarpanch", Arial, Verdana;
}

.power-bonus {
    position: absolute;
    top: -65px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: all 0.3s ease;
    padding: 2px 8px;
    border-radius: 4px;
    min-width: 60px;
    text-align: center;
}

.power-bonus.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px) scale(1.1);
}

.power-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 0%;
    background: #feca2a;
    border-radius: 10px;
    transition: height 0.1s linear;
}

.power-bar.resetting {
    transition: height -1s linear;
}

.power-indicator {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 0%;
    background-color: #ff4444;
    border-radius: 10px;
}

.angle-control {
    text-align: center;
}

.btn-angle {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #fff;
    font-family: "Sarpanch", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.1rem;
    padding-bottom: 5px;
    transform-origin: center;
}

.btn-angle:hover {
    transform: scale(1.15);
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.result-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Sarpanch", sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
    z-index: 2001;
    opacity: 0;
    text-align: center;
    transition: opacity 0.3s ease;
    white-space: pre-line;
}

.result-text.show {
    opacity: 1;
}

#game-summary h1 {
    font-size: 4rem;
    margin: 0;
}

#game-summary p {
    font-size: 1rem;
    margin-bottom: 20px;
    margin-top: 0;
}

/* Adjust z-index for specific scenes */
#scene-kick-bg {
    z-index: 105 !important; /* Place kick background above other scenes */
}

#scene-four {
    z-index: 104 !important;
}

#scene-three {
    z-index: 103 !important;
}

#scene-two {
    z-index: 102 !important;
}

#scene-one {
    z-index: 101 !important;
}

/* Ensure the result text stays on top */
.result-text {
    z-index: 2001;
}

/* Ensure the game overlay stays above scenes */
.game-overlay {
    z-index: 2000;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: "Sarpanch", sans-serif;
    color: white;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 10px;
    text-align: center;
    font-size: 1.2em;
}

.leaderboard-table th {
    font-size: 1.5em;
    font-weight: 600;
    padding: 15px;
}

.leaderboard-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-table tbody tr:last-child {
    border-bottom: none;
}

#leader-board .lb-content {
    background-color: rgba(0, 28, 56, 0.95);
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
}

#leader-board h2 {
    color: white;
    font-family: "Sarpanch", sans-serif;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

#btn-leader-board,
#btn-play-again {
    width: 55%;
    margin: 0 auto 10px;
    font-family: "Sarpanch", sans-serif;
    font-size: 1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

#btn-back {
    width: 55%;
    margin: 20px auto 0;
    font-family: "Sarpanch", sans-serif;
    font-size: 1em;
    text-transform: uppercase;
}

#leader-board .lb-content h2 {
    font-size: 2em;
}

#leader-board .lb-content table th {
    font-size: 1.2em;
}

/* Media query for devices with height less than 800px */
@media screen and (max-height: 800px) {
    .logo-container {
        min-height: 95px;
    }

    #titans-logo {
        max-width: 70px !important;
    }

    .logo-container h1 {
        font-size: 0.8rem;
        margin: 3px;
    }

    /* Adjust game controls position */
    .game-controls {
        bottom: 100px;
    }

    .power-control {
        bottom: 110px;
        height: 140px;
    }

    /* Smaller player info */
    .player-avatar {
        width: 80px;
        height: 80px;
    }

    .player-name {
        width: 80px;
        height: 40px;
        padding: 0px 10px;
    }

    .player-name h5 {
        font-size: 1rem;
    }

    .player-name h6 {
        font-size: 0.8rem;
        padding-top: 3px;
    }

    .player-score {
        width: 80px;
        height: 65px;
        padding: 5px 10px;
    }

    .score-value {
        font-size: 2rem;
    }

    .high-score {
        width: 80px;
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    /* Smaller game controls */
    .wind-meter {
        width: 95px;
        height: 95px;
    }

    .wind-value {
        font-size: 1.5rem;
    }

    .wind-unit,
    .wind-label {
        font-size: 0.6rem;
    }

    .power-meter {
        width: 110px;
        height: 60px;
    }

    .btn-angle {
        width: 70px;
        height: 70px;
        font-size: 0.9rem;
    }

    /* Adjust game stats */
    .balls-remaining {
        padding: 8px 12px;
        font-size: 1rem;
    }

    /* Adjust result text */
    .result-text {
        font-size: 2rem;
    }

    /* Adjust game instruction */
    .game-instruction {
        font-size: 0.9rem;
        padding: 12px 15px;
        width: 180px;
        bottom: 200px;
    }

    /* Adjust game hints */
    .game-hint {
        font-size: 0.8rem;
        padding: 8px 12px;
        width: 130px;
    }
}

select[name="favPlayer"] {
    text-align-last: center;
    text-align: center;
    -webkit-text-align-last: center;
    -moz-text-align-last: center;
    color: #808080; /* Grey text for unselected state */
}

select[name="favPlayer"] option {
    text-align: center;
    color: #808080; /* Black text for options in dropdown */
}

/* Style for the placeholder option */
select[name="favPlayer"] option[value=""] {
    color: #808080; /* Grey text for placeholder option */
}

/* Make selected option text black */
select[name="favPlayer"]:not([value=""]):not(:focus) {
    color: #808080;
}

/* When an actual option is selected (not the placeholder) */
select[name="favPlayer"]:has(option:checked:not([value=""])) {
    color: #000000;
}

.result-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1500;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.result-video-overlay.visible {
    opacity: 1;
}

.result-video-overlay video {
    width: auto;
    height: 100dvh;
    margin-left: 50%;
    transform: translateX(-50%);
    object-fit: cover;
}

/* Game Hints */
.game-hint {
    position: absolute;
    background: rgba(254, 202, 42, 0.95);
    color: #000;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2002;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    width: 150px;
    text-align: center;
}

.game-hint::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.game-hint.angle-hint {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
}

.game-hint.angle-hint::after {
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0 10px;
    border-color: rgba(254, 202, 42, 0.95) transparent transparent transparent;
}

.game-hint.power-hint {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
}

.game-hint.power-hint::after {
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0 10px;
    border-color: rgba(254, 202, 42, 0.95) transparent transparent transparent;
}

.game-hint.show {
    opacity: 1;
}

/* Game Instructions */
.game-instruction {
    position: absolute;
    background: rgba(254, 202, 42, 0.95);
    color: #000;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2002;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: center;
    width: 250px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 250px;
    white-space: pre-line;
}

.game-instruction.show {
    opacity: 1;
}

@keyframes buttonPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.btn-angle.flash {
    animation: buttonPulse 2s ease-in-out infinite;
}

/* Add responsive positioning for smaller screens */
@media screen and (max-height: 800px) {
    .game-instruction {
        bottom: 200px;
    }
}
